package com.veryedu.hibernate.hbm.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * Tickets entity. @author MyEclipse Persistence Tools
 */

public class Tickets implements java.io.Serializable {

	// Fields

	private Integer ticketid;
	private ShowTime showTime;
	private Seat seat;
	private Float price;
	private Integer state;
	private Set orders = new HashSet(0);

	// Constructors

	/** default constructor */
	public Tickets() {
	}

	/** full constructor */
	public Tickets(ShowTime showTime, Seat seat, Float price, Integer state,
			Set orders) {
		this.showTime = showTime;
		this.seat = seat;
		this.price = price;
		this.state = state;
		this.orders = orders;
	}

	// Property accessors

	public Integer getTicketid() {
		return this.ticketid;
	}

	public void setTicketid(Integer ticketid) {
		this.ticketid = ticketid;
	}

	public ShowTime getShowTime() {
		return this.showTime;
	}

	public void setShowTime(ShowTime showTime) {
		this.showTime = showTime;
	}

	public Seat getSeat() {
		return this.seat;
	}

	public void setSeat(Seat seat) {
		this.seat = seat;
	}

	public Float getPrice() {
		return this.price;
	}

	public void setPrice(Float price) {
		this.price = price;
	}

	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Set getOrders() {
		return this.orders;
	}

	public void setOrders(Set orders) {
		this.orders = orders;
	}

}